var LOGIN = {
    init : function() {
        LOGIN.initUI();
        LOGIN.initEvent();
        LOGIN.uiState();
    },

    initUI : function() {
        
    },

    initEvent : function() {
        
    },

    uiState : function() {
        
    },

    onLogin : function() {
        var options = {
            //target: '#output1',
            beforeSubmit: function() {
                alert('beforesubmit');
            },
            success: function() {
                alert('success');
            },
            dataType: 'json', // 'xml', 'script' or 'json' (expected server response type)
        };

        $('#loginForm').ajaxForm(options).submit(function() {return false});
    },

    goToRegisterPage : function() {
        window.location = "/register.htm";
    }
};
jQuery(document).ready(LOGIN.init);